package com.dao.user;

import com.entity.Bill;
import com.entity.Provider;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProviderMapper {
    public int addProvider(Provider provider);

    public int updateProvider(Provider provider);
    public List<Provider> selectProviderId(Integer id);
    public int deleteProvider(int id);

    public List<Provider> getProviderById_foreach_array(Integer[] idArray);

    public List<Provider> getProviderById_foreach_list(List<Integer> idList);

    public List<Provider> getProviderList_choose(@Param("proCode")String proCode,
                                                 @Param("proName")String proName,
                                                 @Param("proContact")String proContact,
                                                 @Param("creationDate")String creationDate);


    public List<Provider> getProviderListLimit(@Param("from")Integer currentPageNo,@Param("pageSize")Integer pageSize);
    public List<Provider> selectProviderLikeNameCode(@Param("proCode")String proCode,@Param("proName")String proName);
}
